package com.app.designpatternslearn.creational.prototypepattern

import com.app.designpatternslearn.creational.prototypepattern.code.Shape
import com.app.designpatternslearn.creational.prototypepattern.code.getShape
import com.app.designpatternslearn.creational.prototypepattern.code.loadCache

fun main() {

    loadCache()

    val clonedShape = getShape(1)
    println("Shape : ${clonedShape.type}")

    val clonedShape2 = getShape(2)
    System.out.println("Shape : ${clonedShape2.type}")

    val clonedShape3 = getShape(3)
    System.out.println("Shape : ${clonedShape3.type}")
}